package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.FloorMapper;
import com.ruoyi.system.domain.Floor;
import com.ruoyi.system.service.IFloorService;

/**
 * 楼层信息Service业务层处理
 * 
 * @author yaozh
 * @date 2024-03-04
 */
@Service
public class FloorServiceImpl implements IFloorService 
{
    @Autowired
    private FloorMapper floorMapper;

    /**
     * 查询楼层信息
     * 
     * @param id 楼层信息主键
     * @return 楼层信息
     */
    @Override
    public Floor selectFloorById(Long id, String dbName)
    {
        return floorMapper.selectFloorById(id, dbName);
    }

    /**
     * 查询楼层信息列表
     * 
     * @param floor 楼层信息
     * @return 楼层信息
     */
    @Override
    public List<Floor> selectFloorList(Long[] appIds,Floor floor, String dbName)
    {
        return floorMapper.selectFloorList(appIds, floor, dbName);
    }

    /**
     * 新增楼层信息
     * 
     * @param floor 楼层信息
     * @return 结果
     */
    @Override
    public int insertFloor(Floor floor, String dbName)
    {
        return floorMapper.insertFloor(floor, dbName);
    }

    /**
     * 修改楼层信息
     * 
     * @param floor 楼层信息
     * @return 结果
     */
    @Override
    public int updateFloor(Floor floor, String dbName)
    {
        return floorMapper.updateFloor(floor, dbName);
    }

    /**
     * 批量删除楼层信息
     * 
     * @param ids 需要删除的楼层信息主键
     * @return 结果
     */
    @Override
    public int deleteFloorByIds(Long[] ids, String dbName)
    {
        return floorMapper.deleteFloorByIds(ids, dbName);
    }

    /**
     * 删除楼层信息信息
     * 
     * @param id 楼层信息主键
     * @return 结果
     */
    @Override
    public int deleteFloorById(Long id, String dbName)
    {
        return floorMapper.deleteFloorById(id, dbName);
    }
}
